import React, { useEffect } from 'react'
import {useRef} from "react"
function Fun() {
let myref = useRef(null)
useEffect(()=>{
    console.log(myref.current);
},[])
  return (
    <div ref={myref} >fun</div>
  )
}

export default Fun